package com.foreknow.dao;

import com.foreknow.model.Hello;

import java.sql.SQLException;
import java.util.List;

public interface HelloDao {
    /**
     * 查询所有
     * @param hello
     * @return
     */
    public List<Object> add();

    /**
     * 单个查询
     * @param id
     * @return
     */
    public Hello query (int id);

    /**
     * 修改
     * @param hello
     * @return
     */
    public boolean update (Hello hello)throws SQLException;
}
